<?php
namespace app\api\validate;

use think\Validate;

class Certification extends Validate
{
    protected $rule = [
        'idcard_front'  => 'require|url',
        'idcard_back'  => 'require|url',
        'idcard_no'  => 'require|length:18',
        'real_name'  => 'require',
        'idcard_hold'=> 'require|url',
        'certificate_photos'=> 'require',
        'corporate_name'=> 'require',
        'unified_social_code'=> 'require',
        'legal_person_name'=> 'require',
        'address'=> 'require',
    ];


    protected $message = [

    ];


    protected $scene = [
        'person'    => ['idcard_front','idcard_back','idcard_no','real_name','idcard_hold'],
        'business'    => ['certificate_photos','corporate_name','unified_social_code','legal_person_name','address'],
    ];
}